package com.itheima.test3;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;

/**
 * @Author:gy
 * @Date: 2025/08/31 10:54
 * @Description:
 */
public class Demo3 {
    public static void main(String[] args) throws Exception {
        //字符缓冲流的特有方法
        BufferedReader br = new BufferedReader(new FileReader("Day11\\c.txt"));
        //一次性读一行数据  没有读到的时候  返回null
        String line;
        while ((line = br.readLine())!=null) {
            System.out.println(line);
        }
        //br.close();
    }
}
